package com.br4mmie.asciistory.map;

/**
 * a Portal MapObject to move between maps
 * @author Bram Buurlage
 */
public class Portal extends MapObject 
{
	private String target;
	private int targetX, targetY;
	
	/**
	 * constructor
	 * @param target the target map for this portal (filename)
	 * @param x the x location for this portal
	 * @param y the y location for this portal
	 * @param targetX the target X on the target map
	 * @param targetY the target Y on the target map
	 */
	public Portal(String target, int x, int y, int targetX, int targetY)
	{
		this.target = target;
		setX(x);
		setY(y);
		
		this.targetX = targetX;
		this.targetY = targetY;
	}
	
	//getters
	public int getTargetX()
	{
		return targetX;
	}
	public int getTargetY()
	{
		return targetY;
	}
	public String getTarget()
	{
		return target;
	}
}
